import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import VueSetupExtend from "vite-plugin-vue-setup-extend";
import { resolve } from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), VueSetupExtend()],
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "@/styles/var.scss";`,
      },
    },
  },
  resolve: {
    alias: {
      "@": resolve("src"),
    },
  },
  server: {
    host: "0.0.0.0",
    port: 8088,
    // open: true,
    // cors: true,
    // Load proxy configuration from .env.development
    // proxy: createProxy(viteEnv.VITE_PROXY)
  },
});
